from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import PersonnelViewSet, EquipmentViewSet

# 创建路由器并注册视图集
router = DefaultRouter()
router.register(r'personnel', PersonnelViewSet)
router.register(r'equipment', EquipmentViewSet)

urlpatterns = [
    path('api/', include(router.urls)),
]